package com.one.api.common.msg.entity;

public class StringMsg {
    private MsgHead head;
    private String body;

    public static StringMsg build(){
        StringMsg content=new StringMsg();
        content.setHead(MsgHead.build());
        return content;
    }

    public static StringMsg build(String body){
        StringMsg content=build();
        content.setBody(body);
        return content;
    }

    public MsgHead getHead() {
        return head;
    }

    public void setHead(MsgHead head) {
        this.head = head;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
